#!/usr/bin/env python

# Build

import Options

def build(bld):

    for arch in bld.lst_variants:
        if arch == 'default': continue
        obj = bld.new_task_gen('cc', 'staticlib')
        obj.env  = bld.env_of_name(arch).copy()

        obj.find_sources_in_dirs('.')
        obj.name         = 'pthread_stub_'+arch
        obj.target       = 'pthread_stub_'+arch
        obj.export_incdirs = '.'
